package com.liqw.activiti.service;

import org.activiti.engine.history.HistoricActivityInstance;
import org.activiti.engine.repository.Deployment;
import org.activiti.engine.runtime.ProcessInstance;

import java.util.List;

public interface ProcessService {
    /**
     * 部署
     */
    Deployment deploy(String fileName);


    /**
     * 启动
     */
    ProcessInstance start(String key);

    /**
     * 结束
     */
    boolean stop(String processId);


    /**
     * 任务列表
     */
    List<HistoricActivityInstance> taskList();
}
